package com.dingup.paike.enums;

/**
 * Created by wancheng on 2018/8/25.
 */
public enum LessonStatusEnum {
    LESSON_UNSTART("未开课"),
    LESSON_IMPLEMENTING("开课中"),
    LESSON_END("结课"),
    DELETE("删除");

    private String name;

    LessonStatusEnum(String name) {
        this.name = name;
    }

    public static LessonStatusEnum getEnum(String type) {
        LessonStatusEnum res = null;
        for (LessonStatusEnum e : LessonStatusEnum.values()) {
            if (e.name().equals(type)) {
                res = e;
                break;
            }
        }
        return res;
    }
}
